package com.li.exception;

import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;

/**
 * 异常处理
 * 自定义异常类,为异常添加状态码404
 * @ResponseStatus:返回的状态码
 * NOT_FOUND:资源找不到的状态，也就是404
 */
@ResponseStatus(HttpStatus.NOT_FOUND)
public class NotFondException extends RuntimeException {

    public NotFondException() {
    }

    public NotFondException(String message) {
        super(message);
    }

    public NotFondException(String message, Throwable cause) {
        super(message, cause);
    }
}
